﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <style type="text/css">
        body {
            margin: 0px;
            padding: 0px;
        }
    </style>
</head>
<body>
    <div id="firstdiv" style="margin:60px 0px 0px 60px; width:760px; height:420px; border:0px solid black;"></div>
    <div style=""><span onclick="testclick()">test</span></div>

    <script type="text/javascript" src="jxhl/jxhl.js"></script>
    <script type="text/javascript">

        jxhl.init("jxhl/sample1.xml", "firstdiv");


        function testclick() {
            var firstdiv = document.getElementById("firstdiv");
            firstdiv.style.width = "1000px";
            firstdiv.style.height = "600px";


            setTimeout(function () {
                var bodysize = jxhl.calcElementSize(document.body);
                //alert([bodysize.width, bodysize.height]);
            }, 500);

            //jxhl.notifyResize("firstdiv");
        }

    </script>
</body>
</html>
